package com.db.rome.monitoring;

import com.db.rome.monitoring.csv.ApplicationComponentStatusCsvReader;
import com.db.rome.monitoring.csv.ConnectionStatusCsvReader;

/**
 * User: gryaale
 * Date: 8/12/14
 */
public class Application {

    public static void main(String[] args) {
        Application application = new Application();
        application.init();

        int eee = 1;
    }

    public DataStorddfgsfdz init() {
        DataStorage dataStorage = new DataStorage();



        ApplicationComponentStatusCsvReader csvReader = new ApplicationComponentStatusCsvReader(dataStorage);
        csvReader.readFile(HelloController.COMPONENT_STATUS_FILE);

        ConnectionStatusCsvReader csvReader1 = new ConnectionStatusCsvReader(dataStorage);
        csvReader1.readFile(HelloController.CONNECTION_STATUS_FILE);

        return dataStorage;
    }
}
